<?php

namespace maotool\src\test;

use maotool\core\serializer\closure\SerializableClosure;
use maotool\thread\Runnable;
use maotool\thread\ThreadUtil;
use PHPUnit\Framework\TestCase;

class ThreadUtilTest extends TestCase
{

    public function testIndex()
    {
        $this->assertTrue(true);
    }

    public function testIndex2()
    {
        $age1 = 18;
        ThreadUtil::execAsync(function () use ($age1) {
            var_dump([ $age1, "666666"]);
            return "8888888";
        });
        var_dump($age1);
        $this->assertTrue(true);
    }

}